//
//  ScreenPCH.swift
//  CardBag
//
//  Created by hl on 2019/5/15.
//  Copyright © 2019 hlznj. All rights reserved.
//

import Foundation
import UIKit

// 是否是iphoneX
let isIphoneX = UIDevice.current.isIphoneX()

// 屏幕高度
let kScreenH: CGFloat = UIScreen.main.bounds.size.height

// 屏幕宽度
let kScreenW: CGFloat = UIScreen.main.bounds.size.width

// 状态栏高度
let kStatusBarHeight: CGFloat = (isIphoneX ? 44.0 : 20.0)

// 顶部导航栏高度
let kNavigationBarHeight = 44.0

// 顶部安全距离
let kSafeAreaTopHeight: CGFloat = (isIphoneX ? 88.0 : 64.0)

// 底部安全距离
let kSafeAreaBottomHeight: CGFloat = (isIphoneX ? 34.0 : 0.0)

// 去除上下导航栏剩余中间视图高度
let ContentHeight = UIScreen.main.bounds.size.height

// Tabbar高度
let kTabbarHeight: CGFloat = 49.0

// window
let KAppDelegate = UIApplication.shared.delegate as! AppDelegate
let KWindow: UIWindow = KAppDelegate.window!

//应用主色 橘色
let MainColor = UIColor.init(hexString: "#F18D2C")

//蓝色
let MainColor1 = UIColor.init(hexString: "#405177")

